
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: colour</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>colour</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/colour.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/colour.py</a></font></td></tr></table>
    <p><tt>colour.py<br>
&nbsp;<br>
NakedMud's&nbsp;base&nbsp;colour&nbsp;module.&nbsp;Contains&nbsp;functions&nbsp;for&nbsp;outbound&nbsp;text&nbsp;processing<br>
to&nbsp;add&nbsp;ASCII&nbsp;colour&nbsp;codes&nbsp;to&nbsp;the&nbsp;text.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="hooks.html">hooks</a><br>
</td><td width="25%" valign=top><a href="mud.html">mud</a><br>
</td><td width="25%" valign=top><a href="mudsock.html">mudsock</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-__unload__"><strong>__unload__</strong></a>()</dt><dd><tt>detaches&nbsp;our&nbsp;colour&nbsp;module&nbsp;from&nbsp;the&nbsp;game</tt></dd></dl>
 <dl><dt><a name="-process_colour_hook"><strong>process_colour_hook</strong></a>(info)</dt><dd><tt>When&nbsp;outbound&nbsp;text&nbsp;is&nbsp;being&nbsp;processed,&nbsp;find&nbsp;colour&nbsp;codes&nbsp;and&nbsp;replace&nbsp;them<br>
by&nbsp;the&nbsp;proper&nbsp;colour&nbsp;escape&nbsp;sequences.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>base_colour_marker</strong> = '{'<br>
<strong>base_colours</strong> = {'b': '34', 'c': '36', 'd': '30', 'g': '32', 'n': '0', 'p': '35', 'r': '31', 'w': '37', 'y': '33'}<br>
<strong>cDARK</strong> = '0'<br>
<strong>cLIGHT</strong> = '1'<br>
<strong>c_blue</strong> = 'b'<br>
<strong>c_cyan</strong> = 'c'<br>
<strong>c_dark</strong> = 'd'<br>
<strong>c_green</strong> = 'g'<br>
<strong>c_magenta</strong> = 'p'<br>
<strong>c_none</strong> = 'n'<br>
<strong>c_red</strong> = 'r'<br>
<strong>c_white</strong> = 'w'<br>
<strong>c_yellow</strong> = 'y'<br>
<strong>colour_start</strong> = '<font color="#c040c0">\x1b</font>['</td></tr></table>
</body></html>